package com.swpu.eduservice.Client;
import com.swpu.commonutils.R;
import com.swpu.eduservice.Client.Impl.VodClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
 * 功能描述：
 * @Author: ygq
 * @Date: 2021/10/20 22:01
 */
@FeignClient(name = "service-vod",fallback = VodClientImpl.class)
@Component
public interface VodClient {

    //根据视频Id删除阿里云中的视频
    @DeleteMapping("/eduvod/video/{id}")  //直接复制方法及参数 路径是完全的路径 加上类上面的路径
    public R removeById(@PathVariable("id") String id); //pathvarible中加上名称

    @DeleteMapping("/eduvod/video/delete-batch")
    public R deletebatch(@RequestParam("videoIdList") List<String> videoList);
}
